package com.example.hjt_java_web_homework2.application.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Li Chun Hei
 * @date 31/10/2025
 * @description
 */
public class AirConditionerDTO {
    private Long id;

    @NotBlank(message = "设备名称不能为空")
    private String name;

    @NotBlank(message = "位置不能为空")
    private String location;

    @NotBlank(message = "设备ID不能为空")
    private String deviceId;

    @NotNull(message = "状态不能为空")
    private Boolean status;

    private Double temperature;
    private String mode;
    private Integer fanSpeed;

    // Constructors
    public AirConditionerDTO() {}

    // Getters and Setters
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getLocation() { return location; }
    public void setLocation(String location) { this.location = location; }
    public String getDeviceId() { return deviceId; }
    public void setDeviceId(String deviceId) { this.deviceId = deviceId; }
    public Boolean getStatus() { return status; }
    public void setStatus(Boolean status) { this.status = status; }
    public Double getTemperature() { return temperature; }
    public void setTemperature(Double temperature) { this.temperature = temperature; }
    public String getMode() { return mode; }
    public void setMode(String mode) { this.mode = mode; }
    public Integer getFanSpeed() { return fanSpeed; }
    public void setFanSpeed(Integer fanSpeed) { this.fanSpeed = fanSpeed; }
}
